package bloodfang;

public enum Talent {
	nightstalker(0,0),subterfuge(0,1),shadow_focus(0,2),
	deadly_throw(1,0),nerve_strike(1,1),combat_readiness(1,2),
	cheat_death(2,0),leeching_poison(2,1),elusiveness(2,2),
	cloak_and_dagger(3,0),shadowstep(3,1),burst_of_speed(3,2),
	prey_on_the_weak(4,0),paralytic_poison(4,1),dirty_tricks(4,2),
	shuriken_toss(5,0),marked_for_death(5,1),anticipation(5,2),
	venom_zest(6,0),shadow_reflection(6,1),death_from_above(6,2);
	
	private final int tier;
	private final int column;
	
	private Talent(int tier, int column){
		this.tier = tier;
		this.column = column;
	}

	public int getTier() {
		return tier;
	}
	
	public static Talent get(int tier,int column){
		for(Talent t: Talent.values()){
			if(t.getTier() == tier && t.getColumn() == column){
				return t;
			}
		}
		System.err.println("Error: Talent does not exist " + tier + "/" + column);
		return null;
	}

	public int getColumn() {
		return column;
	}
}
